package whisper.api.gateway.frame.auth.repository;


import whisper.api.gateway.frame.auth.domain.Role;

import java.util.List;

/**
 * Created by JT on 2017/9/22.
 */
public interface RoleRepository {

    void insertRole(Role role);

    /**
     * 查询用户所有角色
     * @param uid： 用户ID
     * @return
     */
    List<Role> findRolesByUid(Integer uid);
}
